#ifndef MESH_H_
#define MESH_H_

#include "../generic/Object.h"

class Mesh : public Object
{
public:
	Mesh();
	Mesh(Vector3f* vertices, int count);
	virtual ~Mesh();
	
public:
	void Load(Vector3f* vertices, int count);
	
protected:
	Vector3f* vertices;
	int numVertices;
		
		
public: /* hit */
	int TestHit(Ray3f ray, HitInfo* hit, int& count);
protected: 
	int TestHitTriangle(Vector3f* tri, Ray3f ray, HitInfo* hit, int& count);
};

#endif /*MESH_H_*/
